package jtk.project4.fleet.field;

import java.awt.FlowLayout;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Align;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.button.CheckButton;
import nl.coderight.jazz.form.field.button.RadioButton;

public class TireViewOptionsField extends GroupControl{
	private ComboField<String> viewComboField;
	private CheckButton viewCheckButton;
	
	public TireViewOptionsField(String bindID){
		setTitle("View Options");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	private void createFields(){
		viewComboField =new ComboField<String>("inventory","status");
		viewComboField.focus();
		viewCheckButton = new CheckButton("Show tires at or below tread depth threshold");
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		//setTitle("View Options");
		setLayout(new FormLayout())
		.addLabel("label.status").addField(viewComboField,Resize.HORIZONTAL)		
		.addRow()
		.addLabel("",Align.LEFT).addField(viewCheckButton)
		;	
	}
}
